package cn.com.thinvent.dispatch.entity.request;

import cn.com.thinvent.dispatch.entity.ModelDatasource;
import cn.com.thinvent.dispatch.entity.ModelDatasourceResultMapping;
import cn.com.thinvent.dispatch.entity.ModelTarget;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TaskDTO implements Serializable {
    private static final long serialVersionUID = -7697532724141036929L;

    /**
     * 主键
     */
    private Integer id;

    /**
     * 结构化数据源id
     */
    private List<Integer> datasourceIds;

    /**
     * 数据源类型（结构化，非结构化）
     */
    private String sourceType;
    /**
     * 源数据配置ID
     */
    private Integer sourceId;
    /**
     * 调度任务名称
     */
    private String taskName;
    /**
     * 执行状态（已执行；未执行）
     */
    private String status;
    /**
     * 用户id
     */
    private Integer userId;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 修改时间
     */
    private Date updateTime;

    /**
     * 任务目标信息列表
     */
    private List<ModelTarget> modelTargets;

    /**
     * 数据源列表
     */
    private List<ModelDatasource> modelDatasources;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSourceType() {
        return sourceType;
    }

    public void setSourceType(String sourceType) {
        this.sourceType = sourceType;
    }

    public Integer getSourceId() {
        return sourceId;
    }

    public void setSourceId(Integer sourceId) {
        this.sourceId = sourceId;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public List<ModelTarget> getModelTargets() {
        return modelTargets;
    }

    public void setModelTargets(List<ModelTarget> modelTargets) {
        this.modelTargets = modelTargets;
    }

    public List<ModelDatasource> getModelDatasources() {
        return modelDatasources;
    }

    public void setModelDatasources(List<ModelDatasource> modelDatasources) {
        this.modelDatasources = modelDatasources;
    }

    public List<Integer> getDatasourceIds() {
        return datasourceIds;
    }

    public void setDatasourceIds(List<Integer> datasourceIds) {
        this.datasourceIds = datasourceIds;
    }


}
